package cn.adviceclient.features.value;

public class StringSetting extends AbstractSetting<String> {
    public StringSetting(String name, String description, String value) {
        super(name, description, value);
    }

    public StringSetting(String name, String description, String value, java.util.function.Supplier<Boolean> visible) {
        super(name, description, value, visible);
    }

    public String getText() {
        return this.value;
    }

    public void setText(String text) {
        this.value = text;
    }

    public Boolean isOnlyNumber() {
        return this.value.matches("[0-9]+");
    }

}